3.1.23 \(\int \frac {1}{(a g+b g x)^3 (A+B \log (e (\frac {a+b x}{c+d x})^n))} \, dx\) [23]

Optimal. Leaf size=197 \[ \frac {b e^{\frac {2 A}{B n}} \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )^{2/n} (c+d x)^2 \text {Ei}\left (-\frac {2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{B n}\right )}{B (b c-a d)^2 g^3 n (a+b x)^2}-\frac {d e^{\frac {A}{B n}} \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )^{\frac {1}{n}} (c+d x) \text {Ei}\left (-\frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{B n}\right )}{B (b c-a d)^2 g^3 n (a+b x)} \]

[Out]

b*exp(2*A/B/n)*(e*((b*x+a)/(d*x+c))^n)^(2/n)*(d*x+c)^2*Ei(-2*(A+B*ln(e*((b*x+a)/(d*x+c))^n))/B/n)/B/(-a*d+b*c)
^2/g^3/n/(b*x+a)^2-d*exp(A/B/n)*(e*((b*x+a)/(d*x+c))^n)^(1/n)*(d*x+c)*Ei((-A-B*ln(e*((b*x+a)/(d*x+c))^n))/B/n)
/B/(-a*d+b*c)^2/g^3/n/(b*x+a)

________________________________________________________________________________________

Rubi [A]
time = 0.19, antiderivative size = 197, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {2549, 2395, 2347, 2209} \begin {gather*} \frac {b e^{\frac {2 A}{B n}} (c+d x)^2 \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )^{2/n} \text {Ei}\left (-\frac {2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{B n}\right )}{B g^3 n (a+b x)^2 (b c-a d)^2}-\frac {d e^{\frac {A}{B n}} (c+d x) \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )^{\frac {1}{n}} \text {Ei}\left (-\frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{B n}\right )}{B g^3 n (a+b x) (b c-a d)^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/((a*g + b*g*x)^3*(A + B*Log[e*((a + b*x)/(c + d*x))^n])),x]

[Out]

(b*E^((2*A)/(B*n))*(e*((a + b*x)/(c + d*x))^n)^(2/n)*(c + d*x)^2*ExpIntegralEi[(-2*(A + B*Log[e*((a + b*x)/(c
+ d*x))^n]))/(B*n)])/(B*(b*c - a*d)^2*g^3*n*(a + b*x)^2) - (d*E^(A/(B*n))*(e*((a + b*x)/(c + d*x))^n)^n^(-1)*(
c + d*x)*ExpIntegralEi[-((A + B*Log[e*((a + b*x)/(c + d*x))^n])/(B*n))])/(B*(b*c - a*d)^2*g^3*n*(a + b*x))

Rule 2209

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - c*(f/d)))/d)*ExpInteg
ralEi[f*g*(c + d*x)*(Log[F]/d)], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2347

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)/n)*x)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2395

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol]
:> With[{u = ExpandIntegrand[(a + b*Log[c*x^n])^p, (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[
{a, b, c, d, e, f, m, n, p, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0] && IntegerQ[m] && IntegerQ[r
]))

Rule 2549

Int[((A_.) + Log[(e_.)*(((a_.) + (b_.)*(x_))/((c_.) + (d_.)*(x_)))^(n_.)]*(B_.))^(p_.)*((f_.) + (g_.)*(x_))^(m
_.), x_Symbol] :> Dist[(b*c - a*d)^(m + 1)*(g/b)^m, Subst[Int[x^m*((A + B*Log[e*x^n])^p/(b - d*x)^(m + 2)), x]
, x, (a + b*x)/(c + d*x)], x] /; FreeQ[{a, b, c, d, e, f, g, A, B, n}, x] && NeQ[b*c - a*d, 0] && IntegersQ[m,
 p] && EqQ[b*f - a*g, 0] && (GtQ[p, 0] || LtQ[m, -1])

Rubi steps

\begin {align*} \int \frac {1}{(a g+b g x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )} \, dx &=\int \frac {1}{(a g+b g x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )} \, dx\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.18, size = 172, normalized size = 0.87 \begin {gather*} \frac {e^{\frac {A}{B n}} \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )^{\frac {1}{n}} (c+d x) \left (b e^{\frac {A}{B n}} \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )^{\frac {1}{n}} (c+d x) \text {Ei}\left (-\frac {2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{B n}\right )-d (a+b x) \text {Ei}\left (-\frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{B n}\right )\right )}{B (b c-a d)^2 g^3 n (a+b x)^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/((a*g + b*g*x)^3*(A + B*Log[e*((a + b*x)/(c + d*x))^n])),x]

[Out]

(E^(A/(B*n))*(e*((a + b*x)/(c + d*x))^n)^n^(-1)*(c + d*x)*(b*E^(A/(B*n))*(e*((a + b*x)/(c + d*x))^n)^n^(-1)*(c
 + d*x)*ExpIntegralEi[(-2*(A + B*Log[e*((a + b*x)/(c + d*x))^n]))/(B*n)] - d*(a + b*x)*ExpIntegralEi[-((A + B*
Log[e*((a + b*x)/(c + d*x))^n])/(B*n))]))/(B*(b*c - a*d)^2*g^3*n*(a + b*x)^2)

________________________________________________________________________________________

Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (b g x +a g \right )^{3} \left (A +B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )\right )}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*g*x+a*g)^3/(A+B*ln(e*((b*x+a)/(d*x+c))^n)),x)

[Out]

int(1/(b*g*x+a*g)^3/(A+B*ln(e*((b*x+a)/(d*x+c))^n)),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*g*x+a*g)^3/(A+B*log(e*((b*x+a)/(d*x+c))^n)),x, algorithm="maxima")

[Out]

integrate(1/((b*g*x + a*g)^3*(B*log(((b*x + a)/(d*x + c))^n*e) + A)), x)

________________________________________________________________________________________

Fricas [A]
time = 0.40, size = 137, normalized size = 0.70 \begin {gather*} -\frac {d e^{\left (\frac {A + B}{B n}\right )} \operatorname {log\_integral}\left (\frac {{\left (d x + c\right )} e^{\left (-\frac {A + B}{B n}\right )}}{b x + a}\right ) - b e^{\left (\frac {2 \, {\left (A + B\right )}}{B n}\right )} \operatorname {log\_integral}\left (\frac {{\left (d^{2} x^{2} + 2 \, c d x + c^{2}\right )} e^{\left (-\frac {2 \, {\left (A + B\right )}}{B n}\right )}}{b^{2} x^{2} + 2 \, a b x + a^{2}}\right )}{{\left (B b^{2} c^{2} - 2 \, B a b c d + B a^{2} d^{2}\right )} g^{3} n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*g*x+a*g)^3/(A+B*log(e*((b*x+a)/(d*x+c))^n)),x, algorithm="fricas")

[Out]

-(d*e^((A + B)/(B*n))*log_integral((d*x + c)*e^(-(A + B)/(B*n))/(b*x + a)) - b*e^(2*(A + B)/(B*n))*log_integra
l((d^2*x^2 + 2*c*d*x + c^2)*e^(-2*(A + B)/(B*n))/(b^2*x^2 + 2*a*b*x + a^2)))/((B*b^2*c^2 - 2*B*a*b*c*d + B*a^2
*d^2)*g^3*n)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*g*x+a*g)**3/(A+B*ln(e*((b*x+a)/(d*x+c))**n)),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*g*x+a*g)^3/(A+B*log(e*((b*x+a)/(d*x+c))^n)),x, algorithm="giac")

[Out]

integrate(1/((b*g*x + a*g)^3*(B*log(((b*x + a)/(d*x + c))^n*e) + A)), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (a\,g+b\,g\,x\right )}^3\,\left (A+B\,\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((a*g + b*g*x)^3*(A + B*log(e*((a + b*x)/(c + d*x))^n))),x)

[Out]

int(1/((a*g + b*g*x)^3*(A + B*log(e*((a + b*x)/(c + d*x))^n))), x)

________________________________________________________________________________________